<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>MIRAS-KZ</title>
     <link media="screen" href="demo/styles/demo.css" type="text/css" rel="stylesheet" />




  <link rel='stylesheet prefetch' href='https://s3-us-west-2.amazonaws.com/s.cdpn.io/6035/grid.css'>
<link rel='stylesheet prefetch' href='http://fonts.googleapis.com/css?family=Montserrat'>
<link rel='stylesheet prefetch' href='https://s3-us-west-2.amazonaws.com/s.cdpn.io/6035/icomoon-scrtpxls.css'>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> 
        <meta name="description" content="Login and Registration Form with HTML5 and CSS3" />
        <meta name="keywords" content="html5, css3, form, switch, animation, :target, pseudo-class" />
        <meta name="author" content="Codrops" />
      
        <link rel="stylesheet" type="text/css" href="css1/demo.css" />
        <link rel="stylesheet" type="text/css" href="css1/style2.css" />
		<link rel="stylesheet" type="text/css" href="css1/animate-custom.css" />
  <style>
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
</style>

    <style>
@import url(http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300);
html{
  height:100%;
}
body{
  text-align:center;
  background:url('bg.jpg')repeat;
  	-webkit-background-size: cover;
	-moz-background-size: cover;
	background-size: cover;
  background-position:50% 50%;
  height:25%;
  font-family: 'Open Sans Condensed', sans-serif;
}
body:before {
	content: "";
	height: 100%;
	display: inline-block;
	vertical-align: middle;
}

#menu{
	display: inline-block;
  height:135px;
  width:60%;
	vertical-align: middle;
  white-space: nowrap;
}

#menu li {
position: relative;
z-index: 2;
display: block;
float: left;
width: 15%;
height: 135px;
line-height: 220px;
margin-right: 1.42857%;
white-space: nowrap;
background-position: 50%;
}
.rocket {
background: url('rocket-large.png')no-repeat;
margin-left: 1.42857%;
}

.wine{
  background:url('wine-large.png')no-repeat;  
}
.burger{
  background:url('burger-large.png')no-repeat;
}
.comment{
  background:url('comment-large.png')no-repeat;

}
.sport{
  background:url('sport-large.png')no-repeat;

}
.earth{
  background:url('earth-large.png')no-repeat;  
}
#menu ul{
  position:relative;
}
#menu ul:after{
  content:"";
  display:block;
  clear:both;
}
#menu a{
  color:#D8D8D8;
  text-decoration:none;
  display:block;
  width:100%;
  height:100%;
  text-shadow: 0 -1px 0 #000;
}
#menu li:after {
content: "";
width: 9.5238%;
height: 100%;
position: absolute;
top: 0;
right: -9.5238%;
background: url('menu-bg.png');
}
.rocket:before {
content: "";
width: 9.5238%;
height: 100%;
position: absolute;
top: 0;
left: -9.5238%;
background: url('menu-bg.png');
border-radius: 0px 0px 0px 0px;
}

.earth:after{
  border-radius:0px 5px 5px 0px;
}
.current{
  position:absolute;
  top:-13px;
  left:8.92857%;
  margin-left: -49px;
  width:100px;
  height:165px;
  -webkit-transition: all 400ms cubic-bezier(.45,1.92,.9,1.54);
-moz-transition: all 400ms cubic-bezier(.45,1.92,.9,1.54);
-o-transition: all 400ms cubic-bezier(.45,1.92,.9,1.54);
-ms-transition: all 400ms cubic-bezier(.45,1.92,.9,1.54);
transition: all 400ms cubic-bezier(.16,1.23,.87,1.18);
}
.current-back{
  width:100%;
  height:100%;
  position:absolute;
  background:#c39449;
  border-radius:5px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.09);
  border-top: 2px solid rgba(255,255,255,0.1);
}
.top-arrow{
  position:absolute;
  overflow:hidden;
  width:100%;
  height:12px;
  top:13px;
  left:0;
  z-index:2;
}
.top-arrow:before{
  content:"";
  position:absolute;
  width:80%;
  height:10px;
  top:-10px;
  left:10%;
  border-radius:20%;
  box-shadow:0 0 10px black;
}
.top-arrow:after{
  content:"";
  position:absolute;
  width:0;
  height:0;
  top:0px;
  border-top:8px solid #c39449;
  border-left:6px solid transparent;
  border-right:6px solid transparent;
  margin-left:-6px;
  left:50%;
}

.bottom-arrow{
  position:absolute;
  overflow:hidden;
  width:100%;
  height:12px;
  bottom:17px;
  left:0;
  z-index:2;
}
.bottom-arrow:before{
  content:"";
  position:absolute;
  width:80%;
  height:10px;
  bottom:-10px;
  left:10%;
  border-radius:20%;
  box-shadow:0 0 10px black;
}
.bottom-arrow:after{
  content:"";
  position:absolute;
  width:0;
  height:0;
  bottom:0;
  border-bottom:12px solid #c39449;
  border-left:8px solid transparent;
  border-right:8px solid transparent;
  margin-left:-8px;
  left:50%;
}

.wine:hover ~ .current{
  left: 25.5%;
}
.burger:hover ~ .current{
 left: 42%;
}
.comment:hover ~ .current{  
   left: 58.5%;
}
.sport:hover ~ .current{
  left: 75%;  
}
.earth:hover ~ .current{
  left: 91.1%; 
}


*, *:before, *:after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: sub;
}

body {
  font-family: 'Montserrat', sans-serif;
 background:
  padding-top: 0px;
}

.btn {
  display: inline-block;
  padding: 6px 14px;
  background: #f2f2f2;
  border-radius: 3px;
  color: #7a7a7a;
  font-size: 0.8125em;
  transition: background .3s ease, color .3s ease;
  text-decoration: none;
}
.btn:hover {
  background: #e5e5e5;
  color: #929797;
}
.btn.btn-primary {
  background: #a5d002;
  color: rgba(255, 255, 255, 0.9);
}
.btn.btn-primary:hover, .btn.btn-primary.active {
  background: #d94040;
}
.btn.btn-large {
  padding: 12px 28px;
}
.btn.btn-caps {
  text-transform: uppercase;
}
.btn.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

 h2 {
  color: #00000;
  font-size: 2em;
}

.checkbox {
  color: #ccc;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.4);
  font-size: 0.6875em;
  margin-bottom: 7px;
  display: inline-block;
}

.box {
  background: #f9f9f9;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  margin-bottom: 20px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}
.box h2 {
  color: #a5d002;
  font-size: 2em;
}


.box p {
  font-size: 1em;
  color: #7d7d7d;
}

.locations {
  padding: 30px;
  text-align: center;
}
.locations .avatar {
  max-width: 100%;
  height: auto;
}
.locations .avatar img {
  max-width: 100%;
  height: auto;
  vertical-align: sub;
}
.locations .details {
  margin-top: 30px;
}
.locations .btn {
  margin-top: 30px;
}



.nav a {
  text-decoration: none;
  color: #cccccc;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
  font-size: 0.75em;
}
.nav a:hover {
  color: #a5d002;
}
.nav [class*="icon-"] {
  font-size: 2em;
  margin-bottom: 5px;
  display: inline-block;
}
.nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.nav li {
  display: inline-block;
}
.nav li a {
  display: block;
  padding: 20px 18px;
}


.post img {
  border-radius: 5px 5px 0 0;
}
.post .details {
  padding: 30px 20px;
}
.post .details p {
  line-height: 1.5em;
}

</style>
  <script src="js/prefixfree.min.js"></script>
  <script src="js/prefixfree.min.js"></script>
</head>
<body>

  <nav id="menu">
     <ul>
     <li class="rocket"><a href="http://localhost/miras/index.html">Главная</a></li>
      <li class="wine"><a href="http://localhost/miras/TEACHERS/teachers.html">Учителя</a></li>
      <li class="burger"><a href="http://localhost/miras/info/info.html">Информация</a></li>
      <li class="comment"><a href="http://localhost/miras/login/login.php">Проверь себя!</a></li>
      <li class="sport" ><a href="http://localhost/miras/%D0%BA%D1%83%D1%80%D1%81%D1%8B/gallery.html">Галерея</a></li>
      <li class="earth"><a href="http://localhost/miras/contacts/contacts.html">О нас</a></li>
	 <div class="current">
    <div class="top-arrow"></div>   
    <div class="current-back"></div>
    <div class="bottom-arrow"></div>
  </div>
    </ul>
</nav>
<br>
<br>
  <div class="container">
            <!-- Codrops top bar -->
            <div class="codrops-top">
             
             
                <div class="clr"></div>
            </div><!--/ Codrops top bar -->
            
            <section>				
                <div id="container_demo" >
                    <!-- hidden anchor to stop jump http://www.css3create.com/Astuce-Empecher-le-scroll-avec-l-utilisation-de-target#wrap4  -->
                    <a class="hiddenanchor" id="toregister"></a>
                    <a class="hiddenanchor" id="tologin"></a>
                    <div id="wrapper">
                        <div id="login" class="animate form">
                            <form  action="php/login.php" autocomplete="on" method="post">
                                <h1>Войти</h1>
                                <?php
                                if (isset($_SESSION['error'])) {
                                    echo "<h3 style='color: red;'>".$_SESSION['error']."</h3>";
                                    unset($_SESSION['error']);
                                }
                                ?>
                                <p> 
                                    <label for="username" class="uname" data-icon="u" > Ваш Логин</label>
                                    <input id="username" name="username" required="required" type="text" placeholder="логин"/>
                                </p>
                                <p> 
                                    <label for="password" class="youpasswd" data-icon="p"> Ваш Пароль </label>
                                    <input id="password" name="password" required="required" type="password" placeholder="пароль" /> 
                                </p>
                               
                                <p class="login button"> 
                                    <input type="submit" value="Войти" /> 
								</p>
                                <p class="change_link">
									Еще не с нами?
									<a href="#toregister" class="to_register">Регистрация!<a>
								</p>
                            </form>
                        </div>

                        <div id="register" class="animate form">
                            <form  action="php/signup.php" autocomplete="on" method="post">
                                <h1> Регистрация </h1>
                                <?php
                                if (isset($_SESSION['signup-error'])) {
                                    echo "<h3 style='color: red;'>".$_SESSION['signup-error']."</h3>";
                                    unset($_SESSION['signup-error']);
                                }
                                ?>
                                <p> 
                                    <label for="usernamesignup" class="uname" data-icon="u">Ваш Логин</label>
                                    <input id="usernamesignup" name="username" required="required" type="text" placeholder="логин" />
                                </p>
                                <p> 
                                    <label for="emailsignup" class="youmail" data-icon="e" > Ваша Почта</label>
                                    <input id="emailsignup" name="email" required="required" type="email" placeholder="имя@mail.ru"/>
                                </p>
                                <p> 
                                    <label for="passwordsignup" class="youpasswd" data-icon="p">Ваш Пароль</label>
                                    <input id="passwordsignup" name="password" required="required" type="password" placeholder="напр. X8df!90EO"/>
                                </p>
                           
                                <p class="signin button"> 
									<input type="submit" value="Регистрация"/> 
								</p>
                                <p class="change_link">  
									Вы уже с нами?
									<a href="#tologin" class="to_register">  Войти</a>
								</p>
                            </form>
                        </div>
						
                    </div>
                </div>  
            </section>
        </div>
        </article>
      
       
      
    </div>
	
  </div>
</div>


  <script src="js/index.js"></script>
</body>
</html>